package cn.zmwh.im.server.modules.message.pojo.entity;

import cn.zmwh.im.common.pojo.dto.transfer.Message;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 群消息
 * </p>
 *
 * @author dmzmwh
 * @since 2025-06-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ImGroupMessage对象", description = "群消息")
public class ImGroupMessage extends Message {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "群id")
    private Long groupId;

    @ApiModelProperty(value = "接收用户id,指定用户才能引用，领取等")
    private String recvIds;

    @ApiModelProperty(value = "被@的用户id列表，逗号分隔")
    private String atUserIds;

    @ApiModelProperty(value = "@全体")
    private Boolean atAll;

    @ApiModelProperty(value = "是否回执消息")
    private Integer receipt;

    @ApiModelProperty(value = "已读数量")
    private Integer readCount;

    @ApiModelProperty(value = "回执消息是否完成")
    private Integer receiptOk;


}
